package org.cuatrovientos.erp.model;



import java.sql.Date;
import java.sql.Timestamp;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Min;
import javax.validation.constraints.Max;

/**
 * 
 * @author CARLOS
 *
 */

public class Issue {
	
	@NotNull(message="ID cannot be null")
	@Min(1)
	private int id;
	@NotNull(message="Name cannot be null")
	private String name;	
	@NotNull(message="Description cannot be null")
	private String description;
	private Timestamp date;
	@NotNull(message="Description cannot be null")
	@Min(1)
	private int idissuetype;
	

public Issue () {
	
}







public Issue(int id, String name, String description, Timestamp date,
		int idissuetype) {
	super();
	this.id = id;
	this.name = name;
	this.description = description;
	this.date = date;
	this.idissuetype = idissuetype;
}







public int getId() {
	return id;
}







public void setId(int id) {
	this.id = id;
}







public String getName() {
	return name;
}







public void setName(String name) {
	this.name = name;
}







public String getDescription() {
	return description;
}







public void setDescription(String description) {
	this.description = description;
}







public Timestamp getDate() {
	return date;
}







public void setDate(Timestamp date) {
	this.date = date;
}







public int getIdissuetype() {
	return idissuetype;
}







public void setIdissuetype(int idissuetype) {
	this.idissuetype = idissuetype;
}







@Override
public String toString() {
	return "Issue [id=" + id + ", name=" + name + ", description="
			+ description + ", date=" + date + ", idissuetype="
			+ idissuetype + "]";
}







}
